<?php
require_once('libs/Smarty.class.php');

session_start(); 
session_unset();
$smarty = new Smarty();
/****************************************************/
$smarty->template_dir = 'smarty/templates';
$smarty->compile_dir = 'smarty/templates_c';
$smarty->cache_dir = 'smarty/cache';
$smarty->config_dir = 'smarty/configs';
$javascript ='<link href="style/style1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	if (document.images) {
		buttonb      = new Image();
		buttonb.src   = "images/sroll_b.jpg" ;
		buttona     = new Image() ;
		buttona.src = "images/sroll_a.jpg" ;
	}
	function btnb(){
		if (document.images) {
		  document["homebutton"].src = buttonb.src;
		}
	}
	function btna(){
		if (document.images) {
		  document["homebutton"].src = buttona.src;
		}
	}
	function hideFrame(){
		framename = window.frames[\'FrameShow\'].document.getElementById(\'TopFrame\');
		if(framename){
			var tempHeight = framename.cols.split(\',\');;
			var col = tempHeight[0].split(\'%\');
			
			if(col[0] > 0){
				framename.cols="25%,*";
				framename.cols="0%,*";
				btna();
			}else{
				framename.cols="25%,*";
				btnb();
			}
		}	
	}
</script>
';
$smarty->assign('javascript', $javascript);
$styletable='
<script type="text/javascript">
theWidth = document.body.clientWidth;
theHeight = document.body.clientHeight;

var main = document.getElementById("main");
if(main){
	main.style.height = theHeight + "px";
}

var maincontent = document.getElementById("r_content");
var content = document.getElementById("content");
if(content){
	content.height = maincontent.clientHeight;
	//content.clientHeight = maincontent.clientHeight;
}

</script>';
$smarty->assign('styletable', $styletable);

$smarty->display('index.tpl');
?>